package com.day18me.hom;

import java.util.Set;
import java.util.TreeSet;

public class TesetStudent {
    public static void main(String[] args) {
        Set set = new TreeSet();

        Student stu1 = new Student("陈冠希",38,"男");
        Student stu2 = new Student("吴亦凡",26,"男");
        Student stu3 = new Student("鹿晗",25,"女");
        Student stu4 = new Student("刘亦菲",23,"女");

        set.add(stu1);
        set.add(stu2);
        set.add(stu3);
        set.add(stu4);


        for(Object o: set){

            System.out.println(o);
        }


    }
}
